﻿using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class LMSaid : Message
    {
        public static int TYPE = 7;
        public static int ID = 125;

        private int lmid;
        private string said;

        public int Lmid
        {
            get
            {
                return lmid;
            }

            set
            {
                lmid = value;
            }
        }

        public string Said
        {
            get
            {
                return said;
            }

            set
            {
                said = value;
            }
        }

        public static LMSaid Create(int id,string sad) {
            LMSaid lm = new login.LMSaid();
            lm.lmid = id;
            lm.said = sad;
            return lm;
        }
        public void decode(core.io.Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeInt(lmid);
            _out.writeString(said);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "said"+ said;
        }
    }
}